package com.jl.jlapp.mvp.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;

import com.jl.jlapp.R;
import com.jl.jlapp.utils.Tools;

public class AddVatInvoiceWaitCheckActivity
  extends AppCompatActivity
{
  @BindView(R.id.btn_finish)
  TextView btnFinish;
  @BindView(R.id.return_btn)
  ImageView returnBtn;
  @BindView(R.id.tips)
  TextView tips;
  @BindView(R.id.title)
  TextView title;
  
  protected void onCreate(@Nullable Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(R.layout.activity_add_vat_invoice_wait_check);
    ButterKnife.bind(this);
    Tools.finishAll();
    if (getIntent().getIntExtra("isUpdate", 0) == 1)
    {
      this.title.setText("修改增票资质");
      this.tips.setText("修改成功，请耐心等待审核");
    }
    this.btnFinish.setOnClickListener(new OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        Tools.addActivity(AddVatInvoiceWaitCheckActivity.this);
        Intent intent = new Intent(AddVatInvoiceWaitCheckActivity.this, InvoiceActivity.class);
        AddVatInvoiceWaitCheckActivity.this.startActivity(intent);
      }
    });
    this.returnBtn.setOnClickListener(new OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        Tools.addActivity(AddVatInvoiceWaitCheckActivity.this);
        Intent intent = new Intent(AddVatInvoiceWaitCheckActivity.this, InvoiceActivity.class);
        AddVatInvoiceWaitCheckActivity.this.startActivity(intent);
      }
    });
  }
  
  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    if ((paramInt == 4) && (paramKeyEvent.getRepeatCount() == 0))
    {
      Tools.addActivity(this);
      startActivity(new Intent(this, InvoiceActivity.class));
      return true;
    }
    return super.onKeyDown(paramInt, paramKeyEvent);
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/mvp/activity/AddVatInvoiceWaitCheckActivity.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */